<?php
/**入口模块
 * Created by PhpStorm.
 * User: 毛文科
 * Date: 2019/3/21 0021
 * Time: 9:42
 */
namespace mwechat;
use mwechat\bind\Wechat;
use mwechat\bind\WechatApplet;

class Mwechat
{
    static public function WechatApplet($config=[]){
        if($config){
            $obj = new WechatApplet($config);
        }else{
            $obj = new WechatApplet();
        }
        return $obj;
    }
    static public function Wechat($config=[]){
        if($config){
            $obj = new Wechat($config);
        }else{
            $obj = new Wechat();
        }
        return $obj;
    }
}